package com.study.jdk.finalobject;

/**
 * Created by tan on 2017/9/8.
 */
public final class FinalHolder {
	private int num;
	private int count;

	public FinalHolder() {
//		Thread thread = new Thread(() -> {
//			System.out.println(this.getNum());
//			System.out.println(this.getCount());
//		});
//		thread.start();
//
//		try {
//			Thread.sleep(1000);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
//		this.num = 10;
//		this.count = 20;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
}
